package com.gurid.service.edu.entity.vo;


import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;

/**
 * 用于显示某一课程详情
 */
@Schema(name="课程信息", description="网站课程详情页需要的相关字段")
@Data
public class WebCourseVo implements Serializable {

    private static final long serialVersionUID = 1L;

    private String id;
    
    @Schema(description = "课程标题")
    private String title;

    @Schema(description = "课程销售价格，设置为0则可免费观看")
    private BigDecimal price;

    @Schema(description = "总课时")
    private Integer lessonNum;

    @Schema(description = "课程封面图片路径")
    private String cover;

    @Schema(description = "销售数量")
    private Long buyCount;

    @Schema(description = "浏览数量")
    private Long viewCount;

    @Schema(description = "课程简介")
    private String description;

    @Schema(description = "讲师ID")
    private String teacherId;

    @Schema(description = "讲师姓名")
    private String teacherName;

    @Schema(description = "讲师资历,一句话说明讲师")
    private String intro;

    @Schema(description = "讲师头像")
    private String avatar;

    @Schema(description = "课程类别ID")
    private String subjectLevelOneId;

    @Schema(description = "类别名称")
    private String subjectLevelOne;

    @Schema(description = "课程类别ID")
    private String subjectLevelTwoId;

    @Schema(description = "类别名称")
    private String subjectLevelTwo;
}
